import axiosApi from "../axiosApi/axiosApi"

export const getData = (data: { zhuititle: any }) => axiosApi({
    method: 'POST',
    url: 'zhc/zhui',
    data
})


export const getTeach = () => axiosApi({
    method: 'GET',
    url: 'zhc/ming',
})


export const getImage = () => axiosApi({
    method: 'GET',
    url: 'zhc/carousel',
})

export const getItem = (data: { _id: any }) => axiosApi({
    method: 'POST',
    url: 'zhc/getItem',
    data
})

export const login = (data: { users: any, password: any }) => axiosApi({
    method: 'POST',
    url: 'zhc/login',
    data
})

export const getChatList = () => axiosApi({
    method: 'GET',
    url: 'chatList',
})